package heven.holt.wan.android.repository

import heven.holt.wan.android.api.ApiWanHomeServer
import heven.holt.wan.android.model.BannerModel
import heven.holt.wan.android.model.BaseModel
import heven.holt.wan.android.model.HotKeyModel

class WanConfigRepository constructor(
    private val apiWanHomeServer: ApiWanHomeServer
) {
    /**
     *获取目前搜索最多的关键词
     */
    suspend fun getHotKey(): BaseModel<List<HotKeyModel>> = apiWanHomeServer.hotKey()

    /**
     * 获取首页Banner
     */
    suspend fun getBanner(): BaseModel<List<BannerModel>> = apiWanHomeServer.banner()
}